<?php

class Server {

	//General Login
	private static $databaseName = 'mysql:host=localhost;dbname=swa20;port=4433';
	private static $user = 'swa20';
	private static $password = 'aD8tooje';

	//Andi LocalLogin
	private static $databaseNameLefthy = 'mysql:host=localhost;dbname=pubvat;port=3306';
	private static $userLefthy = 'root';
	private static $passwordLefthy = 'phpuser';

	private static $setting = 1;

	public static function getGeneralDatabaseName() {
			
		switch (Server::$setting) {
			case 0:
				return Server::$databaseName;
				break;
			case 1:
				return Server::$databaseNameLefthy;
				break;
		}
	}

	public static function getGeneralUser() {
		 
		switch (Server::$setting) {
			case 0:
				return Server::$user;
				break;
			case 1:
				return Server::$userLefthy;
				break;
		}
	}

	public static function getGeneralPassword() {
		switch (Server::$setting) {
			case 0:
				return Server::$password;
				break;
			case 1:
				return Server::$passwordLefthy;
				break;
		}

	}

}

?>